#include "UIButton.h"

namespace Lame3d
{
	UIButton::UIButton(const std::string &name, const Point2d &loc, const Point2d &size, const std::string &t)
			: UIElement(name, loc, size), text(t), state(UP)
	{
	}
	
	UIButton::~UIButton()
	{
	}
	
	UIButton::ButtonState UIButton::State() const
	{
		return state;
	}
	
	void UIButton::State(ButtonState s)
	{
		state = s;
	}
	
	const std::string& UIButton::Text() const
	{
		return text;
	}
	
	void UIButton::Text(const std::string &t)
	{
		text = t;
	}
}
